package com.joker.aigc.accountboolk.domain.po;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.joker.aigc.domain.po.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @description: 记账本
 * @author: feixiang.li
 * @date: 2025-01-04 13:35
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(name = "用户类")
@TableName(value = "account_book")
public class AccountBookPO extends BaseEntity {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 账本类型 1-收入 2-支出
     */
    private Integer type;
    /**
     * 用户id
     */
    private Long userId;

    /**
     * 账本名称
     */
    private String name;

    /**
     * 金额
     */
    private BigDecimal amount;

    /**
     * 分类
     */
    private String category;


    /**
     * 日期
     */
    private Date date;

    /**
     * 备注
     */
    private String remark;

}
